from opc_client import OpcClient


if __name__ == '__main__':
    """
    交通
    代码地址 /www/wwwroot/hydroPowerMonitor-jt/
    """
    sub_ids = (
        'ns=1;s=t|dong_1',
        'ns=1;s=t|dong_red_1',
        'ns=1;s=t|dong_yellow_1',
        'ns=1;s=t|nan_1',
        'ns=1;s=t|nan_red_1',
        'ns=1;s=t|nan_yellow_1',
        'ns=1;s=t|PLC_start',
    )
    ip = '192.168.2.33'
    port = 4862
    OpcClient(ip, port, sub_ids)
